package it.unibo.convoycruisecontrol.chiefboatsubsystem.test.mock;

import it.unibo.convoycruisecontrol.chiefboatsubsystem.ControlPanel;
import it.unibo.convoycruisecontrol.chiefboatsubsystem.IControlPanel;
import it.unibo.location.LocationDevice;
import it.unibo.util.information.InformationConverter;

public class MockControlPanel extends ControlPanel implements IControlPanel 
{
	public MockControlPanel() throws Exception
	{
		super();
	}
	
	public MockControlPanel(int boatsNumber, int distanceLimit, LocationDevice locDev, InformationConverter informationConverter) throws Exception
	{
		super(boatsNumber, distanceLimit, locDev, informationConverter);
	}

	private float speed;
	private boolean started = false;

	@Override
	public void setSpeed(float speed) {
		this.speed = speed;
	}
	
	public float getSpeed()
	{
		return speed;
	}

	@Override
	public void startConvoy() 
	{
		started = true;
	}

	@Override
	public void stopConvoy() 
	{
		started = false;
	}
	
	public boolean isStarted()
	{
		return started;
	}

	
	public boolean isConvoyEnabled()
	{
		return convoyEnabled;
	}
	
	

}
